#include "ib_switch.h"

Define_Module(IBSwitch);

void IBSwitch::initialize() {
    cross_connected_upperlevel_numswitch = par("cross_connected_upperlevel_numswitch");
    total_level_switch = par("total_level_switch");

    switch_index = par("switch_index"); 
    is_cross_connected = par("is_cross_connected"); // true indicates the current switch is cross_connected to it's upper level switch
    numSwitchPorts = par("numSwitchPorts");     // Total num of switch ports for each switch

    ISWDelay = par("ISWDelay"); // Delay brought by IBUF in SWitch
    VSWDelay = par("VSWDelay"); // Delay in ns brought by IBUF in Switch
    //pktFwdType = par("pktFwdType");         // The type of the packet forwarding engine to use
}